<?php
require_once 'connect.php';

$filter = false;
if(isset($_POST)) {
	$filter = $_POST['gameName'];
}
// connect to mysql database
connect();
// get game list
$count = getGameCount($filter);
// disconnect to mysql database
disconnect();

echo $count;
?>